package com.beibei.file.bean;

/**
 * 页面访问文件类
 * 
 * @author 309814490@qq.com
 * @since 2014-02-12
 */
public class PageFile extends BaseFile {
	private static final long serialVersionUID = -2526499755318551871L;

	private String sessionId; // SessionId
	private String userId; // 用户ID
	private String accessTime; // 访问时间

	private String refer; // 访问来源
	private String page; // 访问地址
	private String params; // 访问地址参数

	private String os; // 用户操作系统
	private String browser; // 用户浏览器信息
	private String resolution; // 用户分辨率

	private String hostName; // 用户主机名
	private String hostUserName; // 用户主机账户名

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getAccessTime() {
		return accessTime;
	}

	public void setAccessTime(String accessTime) {
		this.accessTime = accessTime;
	}

	public String getRefer() {
		return refer;
	}

	public void setRefer(String refer) {
		this.refer = refer;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public String getBrowser() {
		return browser;
	}

	public void setBrowser(String browser) {
		this.browser = browser;
	}

	public String getResolution() {
		return resolution;
	}

	public void setResolution(String resolution) {
		this.resolution = resolution;
	}

	public String getHostName() {
		return hostName;
	}

	public void setHostName(String hostName) {
		this.hostName = hostName;
	}

	public String getHostUserName() {
		return hostUserName;
	}

	public void setHostUserName(String hostUserName) {
		this.hostUserName = hostUserName;
	}

	public String getValue() {
		StringBuilder builder = new StringBuilder();
		builder.append(this.getRandId());
		builder.append(";").append(this.sessionId);
		builder.append(";").append(this.userId);
		builder.append(";").append(this.accessTime);

		builder.append(";").append(this.getClientIp());
		builder.append(";").append(this.getServerIp());

		builder.append(";").append(this.refer);
		builder.append(";").append(this.page);
		builder.append(";").append(this.params);

		builder.append(";").append(this.os);
		builder.append(";").append(this.browser);
		builder.append(";").append(this.resolution);

		builder.append(";").append(this.hostName);
		builder.append(";").append(this.hostUserName);

		return builder.toString();
	}

}
